<template>
  <div>
    <el-row v-for="t in attention" :key="attention.id" style="border-bottom: #cccccc solid 1px;margin-top: 20px">
      <el-col :span="2">
        <div class="grid-content bg-purple">
          <div class="demo-image">
            <div class="block ">
              <el-avatar :size="100" :src="t.img"></el-avatar>
            </div>
          </div>
        </div>
      </el-col>
      <el-col :span="14">
        <div class="grid-content bg-purple-light">
          <el-link :underline="false" type="primary">{{ t.title }}</el-link>
        </div>
        <div>{{ t.time }}</div>
      </el-col>
      <el-col :span="8"><div class="grid-content bg-purple" style="float: right">
        <div style="margin: 10px;">
          <el-button type="danger" plain @click="">查看</el-button>
        </div>
        <div style="margin: 10px;">
          <el-button type="warning" plain @click="">已读</el-button>
        </div>
      </div></el-col>
    </el-row>
  </div>
</template>

<script>
export default {
  name: "Message",
  data() {
    return {
      activeName: 'first',
      /*关注信息*/
      attention:[{
        id:'',
        img:'https://liuqinglei.oss-cn-beijing.aliyuncs.com/d9651b2f-481a-4f08-a539-b1a2d6361527.JPG',
        name: 'lql',
      },
        {
          id:'',
          img:'https://liuqinglei.oss-cn-beijing.aliyuncs.com/d9651b2f-481a-4f08-a539-b1a2d6361527.JPG',
          name: 'lql',
        },
        {
          id:'',
          img:'https://liuqinglei.oss-cn-beijing.aliyuncs.com/d9651b2f-481a-4f08-a539-b1a2d6361527.JPG',
          name: 'lql',
        },
        {
          id:'',
          img:'https://liuqinglei.oss-cn-beijing.aliyuncs.com/d9651b2f-481a-4f08-a539-b1a2d6361527.JPG',
          name: 'lql',
        },]
    }
  },
  methods: {
    handleClick(tab, event) {
      console.log(tab, event);
    }
  },
  mounted() {

  }
}
</script>

<style scoped>
.grid-content {
  min-height: 36px;
}
</style>
